/**
 * @file timer_operation.h
 * @author your name (you@domain.com)
 * @brief 定时器操作
 * @version 0.1
 * @date 2025-04-30
 *
 * @copyright Copyright (c) 2025
 *
 */
#ifndef __TIMER_OPERATION_H__
#define __TIMER_OPERATION_H__
#include "xmzTypeDefine.h"
#include "systemType.h"
#include <stddef.h>
/**
 * @brief s7size:13
 *
 */
Bool TON(Bool IN, Time PT, Time ET, IEC_Timer* instance);
Bool CoilTON(Bool in, Time value, Time system_time, IEC_Timer* operand);
Bool ResetIECTimerCoil(Bool in, IEC_Timer* operand); // -
void RESET_TIMER(IEC_Timer* operand);
// Bool TONR(Bool IN,  Bool R, Time PT ,Time system_time, IEC_Timer* instance);
Bool TONR(Bool IN, Bool R, Time PT, Time system_time, Time* ET, IEC_Timer* instance);
Bool CoilTONR(Bool in, Time value, Time system_time, IEC_Timer* operand);
Bool TOF(Bool IN, Time PT, Time ET, IEC_Timer* instance);
Bool CoilTOF(Bool in, Time value, Time system_time, IEC_Timer* operand);
Bool CoilTP(Bool IN, Time TagTime, IEC_Timer* tp, Time now);
#endif
